package de.dhbwstuttgart.vincon.telefoncompany.model;

import java.util.Calendar;

public class Call {
	private long start;
	private long end;
	private Phone caller;
	private Phone callee;
	
	public Call(Calendar start, Calendar end, Phone caller, Phone callee) {
		this.setStart(start);
		this.setEnd(end);
		this.setCaller(caller);
		this.setCallee(callee);
	}

	public long getStart() {
		return start;
	}

	public void setStart(Calendar start) {
		this.start = start.getTimeInMillis();
	}

	public long getEnd() {
		return end;
	}

	public void setEnd(Calendar end) {
		this.end = end.getTimeInMillis();
	}

	public Phone getCaller() {
		return caller;
	}

	public void setCaller(Phone caller) {
		this.caller = caller;
	}

	public Phone getCallee() {
		return callee;
	}

	public void setCallee(Phone callee) {
		this.callee = callee;
	}
}
